package com.huawei.appgallery.updatemanager.ui.cardkit.card;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appgallery.updatemanager.ui.cardkit.bean.IgnoreUpdateTitleCardBean;
import o.cgz;
import o.czi;
import o.czk$d;
import o.czk.g;
import o.ContentManager;
import o.ll;

public class IgnoreUpdateTitleCard extends BaseTitleCard {
    public IgnoreUpdateTitleCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        super.ˏ(view);
        this.ʽ.setVisibility(0);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        if (this.ˋ != null) {
            this.ˋ.setText(ContentManager.getInstant().getContext().getString(g.ˊॱ));
        } else {
            czi.ˎ.ˊ("IgnoreUpdateTitleCard", "setCardData, leftTextView is null!");
        }
        if (cardBean instanceof IgnoreUpdateTitleCardBean) {
            IgnoreUpdateTitleCardBean ignoreUpdateTitleCardBean = (IgnoreUpdateTitleCardBean) cardBean;
            this.ᐝ.setOnClickListener(new OnClickListener(this) {
                final /* synthetic */ IgnoreUpdateTitleCard ˎ;

                {
                    this.ˎ = r1;
                }

                public void onClick(View view) {
                    ll.ˏ(this.ˎ.ʼॱ).ˋ(new Intent("updatemanager.ignore.update.isshow.action"));
                }
            });
            if (ignoreUpdateTitleCardBean.isIgnoreCardshow) {
                this.ʽ.setImageResource(czk$d.ॱ);
                return;
            } else {
                this.ʽ.setImageResource(czk$d.ˎ);
                return;
            }
        }
        czi.ˎ.ˊ("IgnoreUpdateTitleCard", "setCardData, operateView is null!");
    }
}
